﻿using System;
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.SharePoint;
using System.Windows.Forms;
using EnvDTE;
using VSLangProj;
using System.IO;
using CodeCounsel.SharePoint.DevTools.Commands;
using System.Reflection;
using Microsoft.VisualStudio.SharePoint.Packages;

namespace CodeCounsel.SharePoint.DevTools.ItemTypes
{
    [Export(typeof(ISharePointProjectItemTypeProvider))]
    [SharePointProjectItemType("CodeCounsel.SharePoint.DevTools.SandboxedVisualWebPart")]
    public class SandboxedVisualWebPart
        : ISharePointProjectItemTypeProvider
    {
        public void InitializeType(ISharePointProjectItemTypeDefinition typeDefinition)
        {
            typeDefinition.SupportedDeploymentScopes = SupportedDeploymentScopes.Site;
            typeDefinition.SupportedTrustLevels = SupportedTrustLevels.Sandboxed;
        }
    }
}
